<extend name="Public/base" />
<block name="body">
    <!--PageContent-->
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header">Tables</h1>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <div class="row">
           <div class="col-md-12">
    <!--tableBlock-->
                <div class="panel panel-default">
                    <div class="panel-heading">
                        DataTables Advanced Tables
                    </div>
                    <div class="panel-body">

                        <div class="">
                            <span class="pull-right">search: <input type="text" valule=""></span>
                        </div>
                        <hr/>
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                
<tr>
<th>id</th>
<th>id</th>
<th>username</th>
<th>userpwd</th>
<th>type</th>
<th>操作</th>
</tr><!--/tableBlock-divider1-->
                                </thead>
                                <tbody>
                
<foreach name="rows" item="row">
<tr>
<td>{$row.id}</td>
<td>{$row.id}</td>
<td>{$row.username}</td>
<td>{$row.userpwd}</td>
<td>{$row.type}</td>
<td><a href="{:U('User/delDo',array('id'=>$row['id']))}">删除</a>
        &nbsp;<a href="{:U('User/edit',array('id'=>$row['id']))}">编辑</a>
        </td>
</tr>
</foreach><!--/tableBlock-divider2-->
                                </tbody>
                            </table>
                        </div>
                        <!-- /.table-responsive -->
                        <nav class="pull-right">
                          <ul class="pagination">
                            <li>
                              <a href="#" aria-label="Previous">
                                <span aria-hidden="true">&laquo;</span>
                              </a>
                            </li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li>
                              <a href="#" aria-label="Next">
                                <span aria-hidden="true">&raquo;</span>
                              </a>
                            </li>
                          </ul>
                        </nav> 

                    </div>
                    <!-- /.panel-body -->
                </div>
                <!--/PageContent-divider-->
           </div> 
        </div>

    </div> 
    
</block>

<block name="script">
</block>